package com.boliq.lol.ui.news;

import android.os.Bundle;
import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager.widget.ViewPager;

import com.boliq.lol.R;
import com.boliq.lol.adapter.imgAdapter;
import com.boliq.lol.base.BaseFragment;
import com.boliq.lol.bean.imgBean;
import com.google.android.material.tabs.TabLayout;

public class MineFragment extends BaseFragment {
    private RecyclerView mRecyclerView;
    private imgAdapter mAdapter;
    @Override
    protected void initArgumentData(Bundle arguments) {
        super.initArgumentData(arguments);
    }

    @Override
    protected void bindData() {
        super.bindData();
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        mRecyclerView.setAdapter(mAdapter);
    }

    @Override
    protected void bindEvent() {

    }

    @Override
    protected void initData() {
        mAdapter=new imgAdapter();
        imgBean cb1=new imgBean(R.drawable.ic_icon8,"500","50%","50","34");
        imgBean cb2=new imgBean(R.drawable.ic_icon10,"300","48%","64","58");
        imgBean cb3=new imgBean(R.drawable.icon_2,"400","70%","34","78");
        mAdapter.addData(cb1);
        mAdapter.addData(cb2);
        mAdapter.addData(cb3);
    }

    @Override
    protected void initView(View view) {
        mRecyclerView=view.findViewById(R.id.rv_menu_list);

    }

    @Override
    protected int rootLayout() {
        return R.layout.view_mine;
    }
}
